package com.asset.dispoal.company.service.converter;

import com.asset.dispoal.company.domain.db.entity.SysCompanyDo;
import com.asset.dispoal.company.dto.CompanyRequest;
import com.asset.dispoal.company.dto.CompanyResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/1/25$
 */
@Mapper
public interface CompanyConverter {

    CompanyConverter INSTANCE = Mappers.getMapper(CompanyConverter.class);

    SysCompanyDo reqToDo(CompanyRequest request);

    List<CompanyResponse> doToRes(List<SysCompanyDo> sysCompanyDo);


}
